#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}

# copy html
#echo "begin copy html "
#cp -r ../love-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy love-gateway "
cp ../love-gateway/target/love-gateway.jar ./love/gateway/jar

echo "begin copy love-auth "
cp ../love-auth/target/love-auth.jar ./love/auth/jar

echo "begin copy love-visual "
cp ../love-visual/love-monitor/target/love-visual-monitor.jar  ./love/visual/monitor/jar

echo "begin copy love-modules-system "
cp ../love-modules/love-system/target/love-modules-system.jar ./love/modules/system/jar

echo "begin copy love-modules-driver "
cp ../love-modules/love-driver/target/love-modules-driver.jar ./love/modules/driver/jar

echo "begin copy love-modules-file "
cp ../love-modules/love-file/target/love-modules-file.jar ./love/modules/file/jar

echo "begin copy love-modules-job "
cp ../love-modules/love-job/target/love-modules-job.jar ./love/modules/job/jar

echo "begin copy love-modules-gen "
cp ../love-modules/love-gen/target/love-modules-gen.jar ./love/modules/gen/jar

